package org.goldfish.library_system.repos;

import org.goldfish.library_system.entity.BorrowRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface BorrowRecordRepository extends JpaRepository<BorrowRecord,Long> {
    List<BorrowRecord> findByReaderId(Long readerId);
    List<BorrowRecord> findByBookId(Long bookId);
    List<BorrowRecord> findByOverdue(boolean overdue);
}
